package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.entity.BaseSupply;
import com.kaili.basic.pojo.entity.BaseSupplyExport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by renzhikun on 18-6-11.
 */
@Mapper
public interface BaseSupplyMapper{

    void addSupply(BaseSupply baseSupply);

    void deleteSupply(Map<String, Object> map);

    void updateSupply(BaseSupply baseSupply);

    List<BaseSupply> querySupply(Pagination page, BaseSupply baseSupply);

    List<String> getSupplyCodeForList();

    List<BaseSupply> getSupplyByNameAndContacts(BaseSupply baseSupply);

    String getMaxSupplyCode();

    List<BaseSupplyExport> querySupplyExport(Map<String, Object> map);

    List<BaseSupply> getSupplyLikeName(@Param("supplyName") String supplyName);
}
